package com.cgydu.utils;
//字符串工具类  判定字符串是否为空

import java.util.UUID;

/**
 * projectName: day25_store
 * author: CGY
 * time: 2020/8/26 9:54
 * description:
 */
public class StrUtils {
    public static String retUUID(){
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    public static boolean empty(String msg){
        return msg!=null && msg.length()>0;
    }
    public static boolean empty(String...msg){
        boolean res = true;
        for(String s:msg){
            res = (s!=null && s.length()>0);
            if(!res){
                break;
            }
        }
        return res;
    }
}